import { ThemeConfigProp } from "@/redux/interface";
/**
 * @description 全局主题设置
 * */
const useTheme = (themType: string) => {
  const initTheme = () => {
    // 灰色和弱色切换
    const body = document.getElementsByTagName("body")[0];
    body.className = themType === "default" ? " defaultTheme" : "darkTheme";
  };
  initTheme();
  return {
    initTheme,
  };
};

export default useTheme;
